﻿using System;
using System.Reflection;
using Microsoft.Phone.Shell;

namespace Mangopollo.Tiles
{
    public static class ShellTileExt
    {
        public static void Create(Uri uri, ShellTileData tiledata, bool usewide)
        {
            Type shellTileType = Type.GetType("Microsoft.Phone.Shell.ShellTile, Microsoft.Phone");
            MethodInfo createmethod = shellTileType.GetMethod("Create", new[] {typeof (Uri), typeof (ShellTileData), typeof (bool)});
            createmethod.Invoke(null, new object[] {uri, tiledata, usewide});
        }
    }
}